package com.ce.controller;


import com.ce.entity.Shop;
import com.ce.entity.ShoppingList;
import com.ce.service.SalesListService;
import com.ce.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 门店 前端控制器
 * </p>
 *
 * @author jyt
 * @since 2022-03-22
 */
@RestController
@RequestMapping("/shop")
public class ShopController {
    @Autowired
    ShopService service;
    /**
     * 查询门店信息
     */
    @GetMapping("/getShopList")
    public List<Shop> testSelect() {
        List<Shop> shopList = service.getList();
        return shopList;
    }
}
